<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" 
      layout:decorator="fragments/layout">
<head>
    <title>Sample</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <!-- <meta name="_csrf" th:content="${_csrf.token}"/>
    default header name is X-CSRF-TOKEN
    <meta name="_csrf_header" content="${_csrf.headerName}"/> -->
    
    <!-- <div th:include="http://www.thymeleaf.org :: p.notice" >...</div>，那么将会调用tag p且.class="notice“的片段 -->
</head>
<body>


<div layout:fragment="content">
	<div layout:include="fragments/model :: model"  th:with="modelID='appointment_model', title='提示信息', content=''" th:remove="tag">
	</div>	 
	
	<th:block th:if="${message != null}" >	
        <!--/* The message code is returned from the @Controller */-->
        <div th:replace="fragments/alert :: alert">&nbsp;</div>
    </th:block>
	<!-- <form id="appointmentForm" name="appointmentForm" action="#"  th:action="@{${links[LIST_FIRST_LINK]}}" method="post">	
		<div class="well">		
			<label th:text="#{menu.appointment.c1}">姓名</label><input type="text" name="_P_NAME" th:value="${params['_P_NAME']}"></input>
		  	<label th:text="#{menu.appointment.c5}">联系电话</label><input type="text" name="_P_TELPHONE" th:value="${params['_P_TELPHONE']}"></input>		  	
		  	
		  	<div class="pull-right">
			  	<button type="submit" class="btn btn-default" th:text="#{form.search}">查询</button>	  
		    	<a th:href="@{${links[NEW_LINK]}}" class="btn btn-default"  th:text="#{form.new}">新建预约</a>
		    	<button type="button" class="btn btn-default" onclick="del()" th:text="#{form.del}">删除预约</button>
			</div>
        </div>
		<div id="dataList" >
			<div th:fragment="dataList">
			    <table class="table table-bordered table-striped" >
			        <thead>
			        <tr>
			            <td class="table-id">ID</td>
			            <td th:text="#{menu.appointment.c1}">姓名</td>
			            <td th:text="#{menu.appointment.c2}">业务类型</td>
			            <td th:text="#{menu.appointment.c3}">身份类型</td>
			            <td th:text="#{menu.appointment.c4}">身份号码</td>
			            <td th:text="#{menu.appointment.c5}">联系电话</td>
			            <td th:text="#{menu.appointment.c6}">预约时间</td>
			            <td th:text="#{menu.appointment.c7}">状态</td>
			        </tr>
			        </thead>
			        <tbody>
			        <tr th:if="${appointments.empty}">
			            <td colspan="8" th:text="#{form.empty}">没有记录</td>
			        </tr>
			        <tr th:each="appointment : ${appointments}">
			            <td><input type="checkbox" th:value="${appointment.id}" th:id="${'chk-' + appointment.id}" name="chk"/></td>
			            <td><a th:href="@{${#strings.replace(links[EDIT_LINK],'{id}',appointment.id)}}" th:id="${'name' + appointment.id}" th:text="${appointment.name}">Name ...</a></td>
			            <td th:text="${appointment.businessType}">BusinessType ...</td>
			            <td th:text="${appointment.idType}">Type ...</td>
			            <td th:text="${appointment.idTypeNo}">Type no ...</td>
			            <td th:text="${appointment.telphone}">Telphone ...</td>
			            <td th:text="${#dates.format(appointment.theDate, 'yyyy-MM-dd HH:mm')}">2014-04-24 00:50</td>
			            <td th:text="${appointment.status}">Status ...</td>
			        </tr>
			        </tbody>
			    </table>
			    <div th:utext="${paginationBean.pagination()}" class="text-center"></div>
		    </div>
	    </div>
	</form> -->
	
	
</div>

</body>
</html>